package Homework5;

import org.testng.annotations.AfterTest;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;

/**
 * Created by Виталий on 26.03.14.
 */
public class NegativeRegistrationRozetka2 extends TestSteps {
    @DataProvider(name = "test1")
    public Object[][] createData1() {
        return new Object[][] {
                { "http://rozetka.com.ua/", "Vit", "vitaliiasxsdasd112@gmail.com", "12345adssa" },
                { "http://rozetka.com.ua/", "Vitaliiaas1234", "vitaliiasxsdasd112zxczxc@gmail.com", "12345adsa" },
                { "http://rozetka.com.ua/", "Vitaliiaas1234", "vitaliiasxsdasd112@gmail.com", "12345adsa" },
        };
    }

    @Test(dataProvider = "test1")
    public void test(String url, String Name, String Email, String Password) throws Exception {
        openPage(url);
        negativeRegistrarion(Name, Email, Password);
    }

    @AfterTest
    public void tearDown() throws Exception {
        closePage();
    }
}